<script setup lang="ts">
const props = withDefaults(
  defineProps<{
    size?: number | string;
    title?: string;
    class?: string;
  }>(),
  {
    size: 16,
  },
);
</script>

<template>
  <svg
    :width="props.size"
    :height="props.size"
    viewBox="0 0 32 32"
    xmlns="http://www.w3.org/2000/svg"
    role="img"
    :aria-label="props.title"
    :class="props.class"
  >
    <g>
      <!-- 橙色背景形状 -->
      <path d="M7 2L20 2L28 10L28 27C28 28.6569 26.6569 30 25 30L7 30C5.34315 30 4 28.6569 4 27L4 5C4 3.34315 5.34315 2 7 2Z" fill="rgb(255,136,0)" fill-rule="evenodd" />
      
      <!-- 内部白色 "P" 字母和装饰 -->
      <g fill="#FFF" fill-rule="evenodd">
        <path d="M11.8164 9.26886L14.6559 9.26886C14.844 9.26886 14.9966 9.42141 14.9966 9.60959L14.9966 10.7454C14.9966 10.9336 14.844 11.0861 14.6559 11.0861L11.8164 11.0861L11.8164 9.26886Z" />
        <path d="M11.8164 12.9036L14.6559 12.9036C14.844 12.9036 14.9966 13.0562 14.9966 13.2444L14.9966 14.7209L14.9966 14.7209L11.8164 14.7209L11.8164 12.9036Z" />
        <path d="M0 0L2.83945 0C3.02763 0 3.18019 0.152552 3.18019 0.340734L3.18019 1.47652C3.18019 1.6647 3.02763 1.81725 2.83945 1.81725L0 1.81725L0 0Z" transform="matrix(-1,0,0,1,13.1802,7.45172)" />
        <path d="M0.340734 0L3.18019 0L3.18019 0L3.18019 1.81725L0.340734 1.81725C0.152552 1.81725 0 1.6647 0 1.47652L0 0.340734C0 0.152552 0.152552 0 0.340734 0Z" transform="matrix(-1,0,0,1,14.9966,5.63434)" />
        <path d="M0 0L3.18019 0L3.18019 1.81725L0.340734 1.81725C0.152552 1.81725 0 1.6647 0 1.47652L0 0L0 0Z" transform="matrix(-1,0,0,1,14.9966,2.00006)" />
        <path d="M0 0L2.83945 0C3.02763 0 3.18019 0.152552 3.18019 0.340734L3.18019 1.47652C3.18019 1.6647 3.02763 1.81725 2.83945 1.81725L0 1.81725L0 0Z" transform="matrix(-1,0,0,1,13.1802,3.8172)" />
        <path d="M0 0L2.83945 0C3.02763 0 3.18019 0.152552 3.18019 0.340734L3.18019 1.47652C3.18019 1.6647 3.02763 1.81725 2.83945 1.81725L0 1.81725L0 0Z" transform="matrix(-1,0,0,1,13.1802,11.0862)" />
        <path d="M15 17.687L15 14.72L10.0026 14.72L10.0026 17.687C10.0026 18.0556 10.3015 18.3545 10.6701 18.3545L14.3324 18.3545C14.7011 18.3545 15 18.0556 15 17.687ZM11.2478 15.6313L13.7465 15.6313L13.7465 16.8807C13.7465 17.0689 13.5939 17.2214 13.4058 17.2214L11.5885 17.2214C11.4003 17.2214 11.2478 17.0689 11.2478 16.8807L11.2478 15.6313Z" />
      </g>
      
      <!-- 折角部分 -->
      <path d="M28 10L21.5 10C20.6716 10 20 9.32843 20 8.5L20 2L28 10Z" fill="rgb(252,213,164)" fill-rule="evenodd" />
    </g>
  </svg>
</template>